﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entities
{
    [Serializable]
    public abstract class TenantEntity : TenantEntity<long>, IEntity<long>
    {
    }

    [Serializable]
    public abstract class TenantEntity<TPrimaryKey> : Entity<TPrimaryKey>, ITenant
    {
        [SugarColumn(ColumnDataType = "bigint", ColumnDescription = "TenantId", IsNullable = false)]

        public virtual long TenantId { get; set; }
    }
}
